.. _ocafilterpolynomial: 1.1.1.11 OcaFilterPolynomial ============================= Class Hierarchy: :ref:`OcaRoot ` :raw:html:`→` :ref:`OcaWorker ` :raw:html:`→` :ref:`OcaActuator ` :raw:html:`→` :ref:`OcaFilterPolynomial ` .. cpp:class:: OcaFilterPolynomial: OcaActuator A generic Z-domain rational polynomial filter section: _A(0) + A(1)z + A(2)z^2 + A(3)z^3 + ..._ B(0) + B(1)z + B(2)z^2 + B(3)z^3 + ... **Properties**: .. _ocafilterpolynomial_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.1.11" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``4.1``. .. _ocafilterpolynomial_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 2 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``4.2``. .. _ocafilterpolynomial_a: .. cpp:member:: OcaList A Numerator - "A" This property has id ``4.1``. .. _ocafilterpolynomial_b: .. cpp:member:: OcaList B Denominator - "B" This property has id ``4.2``. .. _ocafilterpolynomial_samplerate: .. cpp:member:: OcaFrequency SampleRate Sample rate inside the filter. We can't assume it's the same as the device input or output rate. This property has id ``4.3``. .. _ocafilterpolynomial_maxorder: .. cpp:member:: const OcaUint8 MaxOrder Maximum order of A[] and B[], i.e. the maximum size of the A[] and B[] arrays. Readonly. This property has id ``4.4``. Properties inherited from :ref:`OcaWorker `: - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` Properties inherited from :ref:`OcaRoot `: - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` **Methods**: .. _ocafilterpolynomial_getcoefficients: .. cpp:function:: OcaStatus GetCoefficients(OcaList &A, OcaList &B) Returns the polynomial coefficients used. This method has id ``4.1``. :param OcaList A: Output parameter. :param OcaList B: Output parameter. .. _ocafilterpolynomial_setcoefficients: .. cpp:function:: OcaStatus SetCoefficients(OcaList A, OcaList B) Sets the polynomial coefficients. This method has id ``4.2``. :param OcaList A: Input parameter. :param OcaList B: Input parameter. .. _ocafilterpolynomial_getsamplerate: .. cpp:function:: OcaStatus GetSampleRate(OcaFrequency &Rate, OcaFrequency &minRate, OcaFrequency &maxRate) Gets the filter sampling rate. This method has id ``4.3``. :param OcaFrequency Rate: Output parameter. :param OcaFrequency minRate: Output parameter. :param OcaFrequency maxRate: Output parameter. .. _ocafilterpolynomial_setsamplerate: .. cpp:function:: OcaStatus SetSampleRate(OcaFrequency Rate) Sets the filter sampling rate. This method has id ``4.4``. :param OcaFrequency Rate: Input parameter. .. _ocafilterpolynomial_getmaxorder: .. cpp:function:: OcaStatus GetMaxOrder(OcaUint8 &Order) Gets the maximum allowable order (= max number of array elements in numerator and for denominator arrays) This method has id ``4.5``. :param OcaUint8 Order: Output parameter. Methods inherited from :ref:`OcaWorker `: - :ref:`OcaWorker::GetEnabled(enabled) ` - :ref:`OcaWorker::SetEnabled(enabled) ` - :ref:`OcaWorker::AddPort(Label, Mode, ID) ` - :ref:`OcaWorker::DeletePort(ID) ` - :ref:`OcaWorker::GetPorts(OcaPorts) ` - :ref:`OcaWorker::GetPortName(PortID, Name) ` - :ref:`OcaWorker::SetPortName(PortID, Name) ` - :ref:`OcaWorker::GetLabel(label) ` - :ref:`OcaWorker::SetLabel(label) ` - :ref:`OcaWorker::GetOwner(owner) ` - :ref:`OcaWorker::GetLatency(latency) ` - :ref:`OcaWorker::SetLatency(latency) ` - :ref:`OcaWorker::GetPath(NamePath, ONoPath) ` Methods inherited from :ref:`OcaRoot `: - :ref:`OcaRoot::GetClassIdentification(ClassIdentification) ` - :ref:`OcaRoot::GetLockable(lockable) ` - :ref:`OcaRoot::LockTotal() ` - :ref:`OcaRoot::Unlock() ` - :ref:`OcaRoot::GetRole(Role) ` - :ref:`OcaRoot::LockReadonly() `